package com.linkoog.devtools.intellij.ui.button;

import org.jetbrains.annotations.NotNull;

import javax.swing.*;
import java.awt.*;

public class IconJButton extends JButton {

    public IconJButton(@NotNull Icon icon) {
        super(icon);
        this.setBorder(BorderFactory.createEmptyBorder());
        this.setContentAreaFilled(false);
        this.setPreferredSize(new Dimension(icon.getIconWidth(), icon.getIconHeight()));
    }
}
